home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13430 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  975 b 

  1. Path: mongol.sasknet.sk.ca!news@mongol.sasknet.sk.ca
  2. From: psc1@mailhost.sasknet.sk.ca (Dave Goertz)
  3. Newsgroups: comp.lang.c++
  4. Subject: Borlands Container Classes
  5. Date: 25 Mar 1996 18:54:36 GMT
  6. Organization: Your Organization
  7. Message-ID: <4j6q5c$jl3@mongol.sasknet.sk.ca>
  8. NNTP-Posting-Host: nomad40.sasknet.sk.ca
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.99.2
  11.  
  12. This is probably an easy question but... I want to put one of my own 
  13. classes in a TIArrayAsVector.  Everything goes well until link time when 
  14. it gives me the error "Illegal structure operation in function 
  15. TMICVectorImp<MyClass,TStandardAllocator>::Find(const MyClass *) cont".  
  16. The code it dies on is:
  17.  
  18.              if( Data[loc] &&
  19.                *STATIC_CAST(T *,STATIC_CAST(void *,Data[loc])) == *t )
  20.                   return loc;
  21.  
  22. I'm not sure whats going on, I am passing a pointer as this is an 
  23. indirect vector array.
  24.  
  25. Anybody please, the documentation for the type cast *STATIC_CAST is 
  26. strange.
  27.  
  28. Dave.
  29.  
  30.